enum boolean {FALSE, TRUE};

char** compare(int* nberreur, char** file1, char** file2, int nb_ligne1, int nb_ligne2)
{
	*nberreur = 0;
	
	int min_line = (nb_ligne1>nb_ligne2?nb_ligne2:nb_ligne1);
	int max_line = (nb_ligne1>nb_ligne2?nb_ligne1:nb_ligne2);

	char** tabErreur = (char**)malloc(max_line*sizeof(char*));
	int i = 0;

	while(i<min_line){
		if(my_strcmp(file1[i], file2[i])!=0){
			int start_line = i;
			while(my_strcmp(file1[i], file2[i])!=0 && i<min_line){
				++i;
			}
			int end_line = i;
			tabErreur[*nberreur] = (char*)malloc(sizeof(char)*11);
			if(end_line>start_line+1){
				sprintf(tabErreur[*nberreur], "%i,%ic%i,%i\0", start_line+1, end_line, start_line+1, end_line);
			}else{
				sprintf(tabErreur[*nberreur], "%ic%i\0", start_line+1, end_line);
			}
			*nberreur = *nberreur+1;
		}
		i++;
	}
	
	return tabErreur;
}